Revert "colorplane: Don't connect to the configure-event signal"
authorMatthias Clasen <mclasen@redhat.com>
Sat, 28 Jun 2014 02:03:11 +0000 (22:03 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 28 Jun 2014 02:03:59 +0000 (22:03 -0400)
This reverts commit 886f58e1cf2b4918ae33dc2b6279fd7e61c56827.

This made the color plane go missing.

gtk/gtkcolorplane.c
gtk/gtkdrawingarea.c

index cd281c2152482e12dabf1d86e272236a9f93c602..4c1bbef1856f1c0cc365e9cc1884de34c4179018 100644 (file)
@@ -172,11 +172,12 @@ create_surface (GtkColorPlane *plane)
   g_free (data);
 }
 
-static void
-plane_size_allocate (GtkWidget     *widget,
-                     GtkAllocation *allocation)
+static gboolean
+plane_configure (GtkWidget         *widget,
+                 GdkEventConfigure *event)
 {
   create_surface (GTK_COLOR_PLANE (widget));
+  return TRUE;
 }
 
 static void
@@ -492,7 +493,7 @@ gtk_color_plane_class_init (GtkColorPlaneClass *class)
   object_class->set_property = plane_set_property;
 
   widget_class->draw = plane_draw;
-  widget_class->size_allocate = plane_size_allocate;
+  widget_class->configure_event = plane_configure;
   widget_class->key_press_event = plane_key_press;
 
   g_object_class_install_property (object_class,
index a9b659ee1c28b775ab5695bc9872f19ac962159f..4be0756ea9b18cbbe40bf74519f0ddb7af517e0c 100644 (file)
@@ -46,7 +46,7 @@
  *   when the widget is instantiated on a particular display.
  *   (Create GDK resources in response to this signal.)
  *
- * - The #GtkWidget::size-allocate signal to take any necessary
+ * - The #GtkWidget::configure-event signal to take any necessary
  *   actions when the widget changes size.
  *
  * - The #GtkWidget::draw signal to handle redrawing the